<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title>JBookShelf</title>
</h:head>
<h:body>
#{sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
		<h:form prependId="false">
			<p:panelGrid columns="2"
				style="margin-left:auto;margin-right:auto;">

				<h:outputLabel value="Login" />
				<p:inputText value="#{loginBean.login}" id="j_username" />
				
				<h:outputLabel value="Password" />
				<p:inputText type="password" value="#{loginBean.password}" id="j_password"  />
				
				<p:commandButton type="submit" value="Enter"  action="#{loginBean.doLogin}"/>
			</p:panelGrid>
		</h:form>
</h:body>
</html>

